package com.xcode.unit.model;

import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.FieldSpec;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author liuziying
 * @Description 生成单元测试模型
 * @Date 2020/12/24
 */
public class UnitTestModel implements Serializable {

    private Class<?> sourceClazz;
    private String sourcePackageName;
    private String sourceClassName;
    private String className;
    private List<FieldSpec> generalFields;
    /*
    方法名-代码块
     */
    private Map<String,CodeBlock> methodAndCodeBlock;

    /**
     * 存放目录
     */
    private String toDirectory;

    public Class<?> getSourceClazz() {
        return sourceClazz;
    }

    public void setSourceClazz(Class<?> sourceClazz) {
        this.sourceClazz = sourceClazz;
    }

    public String getSourcePackageName() {
        return sourcePackageName;
    }

    public void setSourcePackageName(String sourcePackageName) {
        this.sourcePackageName = sourcePackageName;
    }

    public String getSourceClassName() {
        return sourceClassName;
    }

    public void setSourceClassName(String sourceClassName) {
        this.sourceClassName = sourceClassName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List<FieldSpec> getGeneralFields() {
        return generalFields;
    }

    public void setGeneralFields(List<FieldSpec> generalFields) {
        this.generalFields = generalFields;
    }

    public Map<String, CodeBlock> getMethodAndCodeBlock() {
        return methodAndCodeBlock;
    }

    public void setMethodAndCodeBlock(Map<String, CodeBlock> methodAndCodeBlock) {
        this.methodAndCodeBlock = methodAndCodeBlock;
    }

    public String getToDirectory() {
        return toDirectory;
    }

    public void setToDirectory(String toDirectory) {
        this.toDirectory = toDirectory;
    }
}
